package com.lhy.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 字典信息模型
 * </p>
 * @author 86159
 * @date 2021-05-22 16:50:22
 * Copyright (c) 2021 
 */
@Data
@TableName("t_dict")
@Schema(description="字典信息")
public class Dict implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 编码
     */
    @Schema(description= "编码")
    @TableField("code")
    private String code;

    /**
     * 描述
     */
    @Schema(description= "描述")
    @TableField("description")
    private String description;

    /**
     * 键
     */
    @Schema(description= "键")
    @TableField("`key`")
    private String key;

    /**
     * 值
     */
    @Schema(description= "值")
    @TableField("value")
    private String value;

    @TableField("comment")
    private String comment;

    /**
     * 优先级
     */
    @Schema(description= "优先级")
    @TableField("priority")
    private Integer priority;

    /**
     * 状态: 1-正常 0-禁用
     */
    @Schema(description= "状态: 1-正常 0-禁用")
    @TableField("status")
    private Integer status;

    /**
     * 更新时间
     */
    @Schema(description= "更新时间")
    @TableField("updated")
    private LocalDateTime updated;


    public static final String ID = "id";
    public static final String CODE = "code";
    public static final String DESCRIPTION = "description";
    public static final String KEY = "key";
    public static final String VALUE = "value";
    public static final String COMMENT = "comment";
    public static final String PRIORITY = "priority";
    public static final String STATUS = "status";
    public static final String UPDATED = "updated";

}
